#pragma once

#ifndef COG_H
#define COG_H

#include "PhysicalObject.h"
#include <vector>

class Cog : public PhysicalObject
{
public:
	Cog(GameState *gameState);
	~Cog();

	virtual void draw();

	virtual void update(double dt);

	virtual void beginContact(b2Contact *contact);

	virtual void endContact(b2Contact *contact);

	void addObject(GameObject* object);

	int getCreateObjectCount() { return m_attachedObjects.size(); }

	GameObject* getCreateObject(int index){ return m_attachedObjects[index]; }

private:
	vector<GameObject*> m_attachedObjects;
};

#endif

